package info.songjie.study.spi.client;

import info.songjie.study.spi.ISpiDemo;

import java.util.Iterator;

public class Client {
	public static void main(String[] args) {
		System.out.println("start");
		Iterator<ISpiDemo> spiDemos = SpiDemoFactory.getSpiDemo();
		while(spiDemos.hasNext()){
			ISpiDemo spiDemo = spiDemos.next();
			spiDemo.test();
		}
		System.out.println("end");
	}
}
